import request from '@/utils/request'

// 企业列表
export const getEnterpriseList = data => request('/system/company/list', 'get', data)

// 企业检查记录
export const getEnterpriseCheckList = data => request('/companyrecord/list', 'get', data)

// 新增企业检查记录
export const addEnterpriseCheck = data => request('/companyrecord', 'post', data)

// 修改企业检查记录
export const modifyEnterpriseCheck = data => request('/companyrecord', 'put', data)

// 获取隐患类别
export const getDangerList = data => request('/system/danger/list', 'get', data)


// 获取企业检查记录详情
export const getEnterpriseCheckDetail = id => request(`/companyrecord/${id}`, 'get')


// 获取检查类型
export const getCheckType = data => request('/system/companychecktype/listMobile', 'post', data)

// 获取检查内容
export const getCheckInfoList = data => request('/system/companycheckinfo/listMobile', 'get', data)


// 删除检查记录照片
export const delphoto = data => request('/companyrecord/delphoto', 'get', data)
